package com.ruoyi.yard.mapper;

import java.util.List;
import com.ruoyi.yard.domain.DeliveryPlanInfo;
import com.ruoyi.yard.domain.DeliveryCompRef;
import org.apache.ibatis.annotations.Param;

/**
 * 发货计划Mapper接口
 * 
 * @author ruoyi
 * @date 2022-09-05
 */
public interface DeliveryPlanInfoMapper 
{
    /**
     * 查询发货计划
     * 
     * @param id 发货计划主键
     * @return 发货计划
     */
    public DeliveryPlanInfo selectDeliveryPlanInfoById(Long id);

    /**
     * 查询发货计划列表
     * 
     * @param deliveryPlanInfo 发货计划
     * @return 发货计划集合
     */
    public List<DeliveryPlanInfo> selectDeliveryPlanInfoList(DeliveryPlanInfo deliveryPlanInfo);

    /**
     * 新增发货计划
     * 
     * @param deliveryPlanInfo 发货计划
     * @return 结果
     */
    public int insertDeliveryPlanInfo(DeliveryPlanInfo deliveryPlanInfo);

    /**
     * 修改发货计划
     * 
     * @param deliveryPlanInfo 发货计划
     * @return 结果
     */
    public int updateDeliveryPlanInfo(DeliveryPlanInfo deliveryPlanInfo);

    /**
     * 删除发货计划
     * 
     * @param id 发货计划主键
     * @return 结果
     */
    public int deleteDeliveryPlanInfoById(Long id);

    /**
     * 批量删除发货计划
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDeliveryPlanInfoByIds(Long[] ids);

    /**
     * 批量删除发货计划_构件
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDeliveryCompRefByWarehouseCompomentNos(Long[] ids);
    
    /**
     * 批量新增发货计划_构件
     * 
     * @param deliveryCompRefList 发货计划_构件列表
     * @return 结果
     */
    public int batchDeliveryCompRef(List<DeliveryCompRef> deliveryCompRefList);
    

    /**
     * 通过发货计划主键删除发货计划_构件信息
     * 
     * @param id 发货计划ID
     * @return 结果
     */
    public int deleteDeliveryCompRefByWarehouseCompomentNo(@Param("deliveryPlanNo") String deliveryPlanNo);

    List<DeliveryPlanInfo> homePageList(DeliveryPlanInfo deliveryPlanInfo);

    List<DeliveryCompRef> selectDeliveryPlanInfoByPlayNo(String deliveryPlanNo);
}
